<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib  prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>学生成绩管理系统</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<link href='http://fonts.googleapis.com/css?family=Belgrano' rel='stylesheet' type='text/css'></link>
<!-- jQuery file -->
<script src="js/jquery.min.js"></script>
<script src="js/jquery.tabify.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
var $ = jQuery.noConflict();
$(function() {
$('#tabsmenu').tabify();
$(".toggle_container").hide(); 
$(".trigger").click(function(){
	$(this).toggleClass("active").next().slideToggle("slow");
	return false;
});
});
</script>
</head>
<body>
<div id="panelwrap">
  	
	<div class="header">
    <div class="title"><s:property value="#session.username"/></div>
    
    <div class="header_right">欢迎<s:property value="#session.username"/>,  <a href="${pageContext.request.contextPath}/login_loginout.action" class="logout">注销</a> </div>
    
    <div class="menu">
    <ul>
    <li><a href="${pageContext.request.contextPath}/student_selectSutudent.action" class="selected">信息管理</a></li>
    <li><a href="#">选课管理</a></li>
    <li><a href="${pageContext.request.contextPath}/grade_findScroeAll.action">成绩管理</a></li>
    <li><a href="${pageContext.request.contextPath}/innvoation_findAllInvoation.action">创新学分管理</a></li>
    <li><a href="${pageContext.request.contextPath}/activity_findAllActivity.action">活动成绩管理</a></li>
   <!--  <li><a href="#">Options</a></li>
    <li><a href="#">Admin settings</a></li>--> 
    <li><a href="#">帮助</a></li>
    </ul>
    </div>
    
    </div>
              
    <div class="center_content">  
 
    <div id="right_wrap">
    <div id="right_content">             
    <h2>信息显示</h2> 
                    
                    
<table id="rounded-corner">
    <thead>
    	<tr>
        	<th></th>
        	<th>系别</th>
            <th>籍贯</th>
            <th>姓名</th>
             <th>性别</th>
            <th>出生日期</th>
            <th>班级</th>
            <th>学号</th>
            <th>入学日期</th>
            <th>修改</th>
            <th>删除</th>
        </tr>
    </thead>
        <tfoot>
    	<tr>
        	<!-- <td colspan="12">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut.</td>
       -->  </tr>
    </tfoot>
    <tbody>
    
    	 <s:iterator var="p" value="pageBean.list">
            <tr align="center" class="odd">
           
            <td><input type="checkbox" name="" /></td>
                <td><s:property value="#p.sdpet"/></td>
                <td><s:property value="#p.saddress"/></td>
                <td><s:property value="#p.name"/></td>
               <td><s:property value="#p.sex" /></td>
                <td>
                <s:date name="#p.birth" format="yyyy-MM-dd"  />
                </td>
               <td><s:property value="#p.sclass"/></td>
               <td><s:property value="#p.number"  /></td>
               <td>
               <s:date name="#p.esdate" format="yyyy-MM-dd"  />
               </td>
                 <td><a href="${pageContext.request.contextPath}/student_updateIdStudent.action?sid=<s:property value="#p.sid"/>"><img src="images/edit.png" alt="" title="" border="0" /></a></td>
            <td><a href="${pageContext.request.contextPath}/student_deleteIdStudent.action?sid=<s:property value="#p.sid"/>"><img src="images/trash.gif" alt="" title="" border="0" /></a></td>
          
           </tr> 

         
    </tbody>
              </s:iterator>

</table>

	         <span>第 <s:property value="pageBean.page"/>/<s:property value="pageBean.totalPage"/> 页</span>&nbsp &nbsp
    &nbsp &nbsp
  
      
    	<s:if test="pageBean.page!=1">
    	  <a href="${pageContext.request.contextPath }/index.action?page=1">第一页</a>
  &nbsp &nbsp  &nbsp &nbsp
  <a href="${pageContext.request.contextPath }/index.action?page=<s:property value="pageBean.page-1"/>">上一页</a>
    	</s:if>
    	  &nbsp &nbsp
    	 <s:iterator var="i" begin="1" end="pageBean.totalPage">
    	    <s:if test="pageBean.page!=#i">
    	                    <a href="${pageContext.request.contextPath }/index.action?page=<s:property value="#i"/>"><s:property value="#i"/></a>
    	  &nbsp &nbsp
    	</s:if> 
    	</s:iterator>
    	
    	<s:if test="pageBean.page != pageBean.totalPage">	
    <a href="${pageContext.request.contextPath }/index.action?page=<s:property value="pageBean.page+1"/>">下一页</a>
  &nbsp &nbsp  &nbsp &nbsp
   <a href="${pageContext.request.contextPath }/index.action?page=<s:property value="pageBean.totalPage"/>">最后一页</a>
 </s:if>
        <div class="toogle_wrap">
      
        </div> 
      
     </div>          
     </div>
            
                    
    <div class="sidebar" id="sidebar">
    <h2>学生信息管理</h2>
    
        <ul>
          <li><a href="${pageContext.request.contextPath}/index.action?page=1" class="selected">信息查看</a></li>
          <li><a href="${pageContext.request.contextPath}/student_addStudent.action">信息添加</a></li>
          <li><a href="${pageContext.request.contextPath}/student_updateIdStudent.action">信息修改</a></li>
          <li><a href="${pageContext.request.contextPath}/student_findStudent.action">信息删除</a></li>
          
	        </ul>
        
    <h2>选课管理</h2>
    
        <ul>
            <li><a href="${pageContext.request.contextPath}/course_findAllCourse.action?page=1">课程查看</a></li>
            <li><a href="${pageContext.request.contextPath}/course_addCourse.action">课程添加</a></li>
            <li><a href="${pageContext.request.contextPath}/course_choiceCourse.action">选课管理</a></li>
            <li><a href="#">课程删除</a></li>
        </ul> 
       <h2>成绩管理</h2>
    
        <ul>
            <li><a href="${pageContext.request.contextPath}/grade_findScroeAll.action">成绩查看</a></li>
            <li><a href="${pageContext.request.contextPath}/grade_addScroeAll.action">成绩添加</a></li>
            <li><a href="#">成绩修改</a></li>
            <li><a href="#">成绩删除</a></li>
        </ul>  
          <s:if test="#session.username=='超级管理员'">
    <h2>创新学分管理</h2>
    
        <ul>
            <li><a href="${pageContext.request.contextPath}/innvoation_findAllInvoation.action">创新学分查看</a></li>
            <li><a href="${pageContext.request.contextPath}/innvoation_addPageInnvoation.action">创新学分添加</a></li>
            <li><a href="${pageContext.request.contextPath}/innvoation_addPageInnvoation.action">创新学分修改</a></li>
            <li><a href="#">创新学分删除</a></li>
        </ul>   
         
    <h2>活动管理</h2> 
           <ul>
            <li><a href="${pageContext.request.contextPath}/activity_findAllActivity.action">活动学分查看</a></li>
            <li><a href="${pageContext.request.contextPath}/activity_addPageActivity.action">活动学分添加</a></li>
            <li><a href="#">活动学分修改</a></li>
            <li><a href="#">活动学分删除</a></li>
        </ul>   
    </s:if>
    </div>             
    
    
    <div class="clear"></div>
    </div> <!--end of center_content-->
    
    <div class="footer">
    
</div>

</div>

    	
</body>
</html>